<template>
  <view class="evaluation">
    <span>销量{{ salesVolume || 0 }} | 评价 {{ evaluationCount || 0 }}</span>
    <span @tap="evaluationAll" class="evaluation_all">
      查看全部
      <uni-icons type="right" color="rgba(242, 85, 0, 1)"></uni-icons>
    </span>
  </view>
</template>

<script>
export default {
  props: {
    salesVolume: {
      type: String || Number,
      default: 0
    },
    evaluationCount: {
      type: String || Number,
      default: 0
    },
    productId: {
      type: String || Number,
      default: 0
    }
  },
  methods: {
		evaluationAll() {
			uni.navigateTo({
				url: '/pages/evaluationList/index?productId=' + this.productId,
			})
		},
  }
}
</script>

<style scoped>

.evaluation {
	display: flex;
	justify-content: space-between;
	padding: 0 30rpx;
	font-size: 26rpx;
}

.evaluation_all {
	color: rgba(242, 85, 0, 1);
}
</style>
